Cocktail Help Reference
Remove Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > ObjectManager<TKey,T> Class : Remove Method



key
The key of the object instance to be removed.

Glossary Item Box

Allows to manually remove an object instance from the manager. A subsequent call to GetObject with the same key will create a new instance.

Syntax

Visual Basic (Declaration) 
Public Sub Remove( _
   ByVal key As TKey _
) 
Visual Basic (Usage)Copy Code
Dim instance As ObjectManager(Of TKey,T)
Dim key As TKey
 
instance.Remove(key)
C# 
public void Remove( 
   TKey key
)
C++/CLI 
public:
void Remove( 
   TKey^ key
) 

Parameters

key
The key of the object instance to be removed.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.